home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 53 / IOPROG_53.ISO / soft / c++ / xceedftp.exe / Samples / Visual Basic / MethodDemo / modMethodDemo.bas < prev   
Encoding:
BASIC Source File  |  2000-10-05  |  6.2 KB  |  113 lines

  1. Attribute VB_Name = "modMethodDemo"
  2. ' Xceed FTP Library - Method Demonstrator sample application
  3. ' Copyright (c) 2000 Xceed Software Inc.
  4. '
  5. ' [modMethodDemo.bas]
  6. '
  7. ' This module contains enumerations and public constants that
  8. ' are referred to by the main form's code.
  9. '
  10. ' This file is part of the Xceed FTP Library samples applications.
  11. ' The source code in this file is only intended as a supplement
  12. ' to Xceed FTP Library's documentation, and is provided "as is",
  13. ' without warranty of any kind, either expressed or implied.
  14.  
  15. Option Explicit
  16.  
  17. '
  18. ' Each method demonstrated in this sample
  19. '
  20.  
  21. Public Enum EXceedFtpMethods
  22.   cNone = 0
  23.   cConnect = &H1
  24.   cDisconnect = &H2
  25.   cChangeCurrentFolder = &H4
  26.   cChangeToParentFolder = &H8
  27.   cCreateFolder = &H10
  28.   cRemoveFolder = &H20
  29.   cListFolderContents = &H40
  30.   cGetFolderContents = &H80
  31.   cRenameFile = &H100
  32.   cDeleteFile = &H200
  33.   cReceiveFile = &H400
  34.   cSendFile = &H800
  35.   cReceiveMultipleFiles = &H1000
  36.   cSendMultipleFiles = &H2000
  37. End Enum
  38.  
  39. '
  40. ' Quick information to display for properties
  41. '
  42.  
  43. Public Const cServerAddressInfo = "The address of the FTP server you wish to connect to. " & _
  44.                                   "You can specify a hostname like 'ftp.xceedsoft.com' or an IP address like " & _
  45.                                   "'192.168.0.200'. You can also specify a WINS hostname, like Windows " & _
  46.                                   "computer names."
  47.  
  48. Public Const cServerPortInfo = "The port number of the FTP server you wish to connect to."
  49.  
  50. Public Const cUserNameInfo = "The username to log in to the FTP."
  51.  
  52. Public Const cPasswordInfo = "The password to use for the user being logged in to the FTP server, if required."
  53.  
  54. Public Const cAllocateStorageInfo = "Some FTP servers require the client to pre-allocate enough space " & _
  55.                                     "on the server before sending a file. In this case, you can " & _
  56.                                     "set the AllocateStorage property to true to tell the library to send " & _
  57.                                     "the 'ALLO' FTP command before each send operation."
  58.                                     
  59. Public Const cPassiveModeInfo = "This property affects the way the data connection (listings and file transfers) " & _
  60.                                 "is initiated between the client and the server. In passive mode (True), the " & _
  61.                                 "client waits for the server to connect to it. Otherwise, the client connects to " & _
  62.                                 "the server."
  63.                                 
  64. Public Const cAsciiRepresentationTypeInfo = "This property affects the format of the files transferred. " & _
  65.                                             "In ASCII format, the files are transferred as text files, " & _
  66.                                             "with CF/LF combinaisons at the end of each line. In this case, " & _
  67.                                             "the actual number of bytes transferred may differ from the " & _
  68.                                             "initially reported sizes."
  69.  
  70. Public Const cBinaryRepresentationTypeInfo = "This property affects the format of the files transferred. " & _
  71.                                              "In binary format, the files are transferred with the same " & _
  72.                                              "BYTE format. The resulting file is an exact binary image of " & _
  73.                                              "the original file."
  74.  
  75. '
  76. ' Quick information for method parameters
  77. '
  78.  
  79. Public Const cFolderNameInfo = "Most FTP servers cannot create more than one folder deep at a time, but you " & _
  80.                                "still can specify a relative or absolute path before the folder to create. Most " & _
  81.                                "FTP servers do not permit removing a non-empty folder."
  82.  
  83. Public Const cFolderMaskInfo = "You can specify a relative or absolute path before the file mask. You can " & _
  84.                                "leave that field empty if you wish to list all the contents of the current folder."
  85.                          
  86. Public Const cRemoteFilenameInfo = "The name of the remote file you wish to rename or delete. You can include a " & _
  87.                                    "relative or absolute path with the filename."
  88.  
  89. Public Const cNewFilenameInfo = "The filename to which you wish to rename the remote filename. Many servers " & _
  90.                                 "support specifying a different path for the new filename, to actually move " & _
  91.                                 "the file from one folder to another."
  92.  
  93. Public Const cSourceFilenameInfo = "SendFile/ReceiveFile: The name of the file you wish to transfer." & vbCrLf & _
  94.                                    "SendMultipleFiles/ReceiveMultipleFiles: The mask of the files you wish " & _
  95.                                    "to transfer." & vbCrLf & vbCrLf & _
  96.                                    "You can specify a relative or absolute path before the filename or mask."
  97.  
  98. Public Const cDestinationFilenameInfo = "SendFile/ReceiveFile: The name of the destination file to create or update." & vbCrLf & _
  99.                                         "SendMultipleFiles/ReceiveMultipleFiles: The destination folder where to " & _
  100.                                         "create or update transferred files." & vbCrLf & vbCrLf & _
  101.                                         "You can specify a relative or absolute path before the filename or as the folder."
  102.  
  103. Public Const cOffsetInfo = "If you wish to resume a file transfer, enter the position in the file where to resume " & _
  104.                            "transfer from, or enter 0 if you want a full transfer."
  105.  
  106. Public Const cAppendInfo = "If you wish to append the contents of a file to the end of a remote file on the " & _
  107.                            "server side, you can tell SendFile or SendMultipleFiles to use the append command."
  108.  
  109. Public Const cProcessSubfoldersInfo = "When transferring multiple files using the ReceiveMultipleFiles or " & _
  110.                                       "SendMultipleFiles methods, you can tell the library to also look for " & _
  111.                                       "matching files in subfolders."
  112.  
  113.